import crypto from 'crypto'

export default function MD5 (str) {
  const MD5_SUFFIX = 'dig?F*ckDang5PaSsWOrd&%(12lian0160630).'
  const obj = crypto.createHash('md5')
  obj.update(str + MD5_SUFFIX)
  return obj.digest('hex')
}
